package com.his.his_system.controller;

import com.his.his_system.common.util.ResultAdvice;
import com.his.his_system.service.DzmHisHospitalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/his/sys/hosp/")
@RestController
@ResponseBody
public class HospitalController {

    @Autowired
    private DzmHisHospitalService hospitalService;

    @GetMapping("list")
    public ResultAdvice list() {
        return ResultAdvice.success(hospitalService.list());
    }
}
